package flymoke.generic.covariant;

import java.util.Arrays;
import java.util.List;

import flymoke.generic.inter.Apple;
import flymoke.generic.inter.Fruit;

public class CompileIntelligence {
  public static void main(String[] args) {
    List<? extends Fruit> list = Arrays.asList(new Apple());
    Apple a = (Apple) list.get(0);

    System.out.println(list.contains(new Apple()));
    System.out.println(list.indexOf(new Apple()));
  }
}
